const KoaRouter = require("@koa/router")
const { sign, test } = require("../controller/login.controller")
const { loginVerify, authorVerify } = require("../middleware/login.middleware")

const loginRouter = new KoaRouter({ prefix: "/login" })

loginRouter.post("/", loginVerify, sign)
loginRouter.get("/test", authorVerify, test)
module.exports = loginRouter
